Skip to content

Restrict setuptools version range in pyproject.toml#570

Closed
SoniaComp wants to merge 1 commit intooracle:mainfrom
SoniaComp:fix-setuptools-version
Closed

Restrict setuptools version range in pyproject.toml#570
SoniaComp wants to merge 1 commit intooracle:mainfrom
SoniaComp:fix-setuptools-version

Conversation

@SoniaComp
Copy link

  1. What versions are you using?

cx_Oracle version: 8.3.0

setuptools version: 82.0.0 (latest at the time of installation)

(Additional Python/platform information can be provided if needed.)

  1. Describe the problem

When installing cx_Oracle 8.3.0, the installation fails due to a compatibility issue with newer versions of setuptools.

Starting from setuptools v82.0.0, pkg_resources is no longer supported (see:
https://github.com/pypa/setuptools/blob/v82.0.0/NEWS.rst#deprecations-and-removals
).

Because of this removal, the installation process raises the following error:

ModuleNotFoundError: No module named 'pkg_resources'

To resolve this issue, we plan to set an upper bound for the setuptools version (i.e., < 82.0.0) to prevent installation failures.

  1. Oracle Client libraries

(Not applicable in this case — the issue occurs during package installation before Oracle Client configuration.)

  1. PATH / LD_LIBRARY_PATH

(Not applicable — installation fails before runtime.)

  1. Oracle environment variables

(Not applicable — installation fails before runtime.)

@oracle-contributor-agreement
Copy link

Thank you for your pull request and welcome to our community! To contribute, please sign the Oracle Contributor Agreement (OCA).
The following contributors of this PR have not signed the OCA:

To sign the OCA, please create an Oracle account and sign the OCA in Oracle's Contributor Agreement Application.

When signing the OCA, please provide your GitHub username. After signing the OCA and getting an OCA approval from Oracle, this PR will be automatically updated.

If you are an Oracle employee, please make sure that you are a member of the main Oracle GitHub organization, and your membership in this organization is public.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Required At least one contributor does not have an approved Oracle Contributor Agreement. label Feb 12, 2026
@SoniaComp SoniaComp closed this Feb 12, 2026
@SoniaComp SoniaComp reopened this Feb 12, 2026
@cjbj
Copy link

cjbj commented Feb 18, 2026

@SoniaComp I don't see any use of pkg_resources in python-oracledb.
I do see it in the obsolete cx_Oracle driver that your problem description references. It sounds like you need to upgrade from cx_Oracle.

@anthony-tuininga
Copy link
Member

anthony-tuininga commented Feb 18, 2026

Thanks, @cjbj . This was opened in the cx_Oracle repo as well but here it indeed has no purpose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Required At least one contributor does not have an approved Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants